//
//  Book.m
//  Objective-C HomeWork 03 - NSString NSArray NSMutableArray
//
//  Created by dllo on 16/7/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Book.h"

@implementation Book
- (instancetype)initWithBookName:(NSString *)bookName bookPrice:(NSInteger)bookPrice {
    self = [super init];
    if (self) {
        _bookName = bookName;
        _bookPrice = bookPrice;
    }
    return self;
}

+ (instancetype)bookWithBookName:(NSString *)bookName bookPrice:(NSInteger)bookPrice {
    return [[Book alloc] initWithBookName:bookName bookPrice:bookPrice]  ;
}
@end
